$(function(){
	$.ajax({
			type:"post",
			url:"http://a.91jfk.com/Product/Notice/SystemNoticeData",
			dataType:'json',
			success:function(res){
				
					console.log(res);
				for(var i = 0; i < res.message.length;i++){
					var dzsj=get_Date(res.message[i].push_time); 
					showData(res.message[i].id,dzsj,res.message[i].title);
				}
			},
			error:function(err){
				console.log(err)
			}
		});
		
		function showData(id,time,title){
			var a = $('<div class="notice_each"><div class="id" style = "display:none">' + id +'</div><div class="notice_time">' + time +'</div><div class="notice_con"><p class="p_top">' + title +'</p></div></div>');
			$(".logistic_content").append(a);
		}
 
function get_Date(tm){  
var d = new Date(tm * 1000);    //根据时间戳生成的时间对象 
var date = (d.getFullYear()) + "-" +  
           (d.getMonth() + 1) + "-" + 
           (d.getDate()); 
         return date; 
} 
		
});
